package com.xquant.marketdata.marketdata.service.impl;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.marketdata.mapper.TirSwapMapper;
import com.xquant.marketdata.marketdata.service.TirSwapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Auther: B946
 * @Date: 23/12/2019 10:17
 * @Description:
 */
@Service
public class TirSwapServiceImpl implements TirSwapService {


    @Autowired
    private TirSwapMapper tirSwapMapper;

    @Override
    public PageInfo<Map>  queryTirSwapInfoByPage(Map<String,Object> params){
        List<Map>   list = tirSwapMapper.queryTirSwapInfoByPage(params);
        return new PageInfo<Map>(list);
    }
    @Override
    public PageInfo<Map>  queryTirSwapPriceByPage(Map<String,Object> params){
        List<Map>   list = tirSwapMapper.queryTirSwapPriceByPage(params);
        return new PageInfo<Map>(list);
    }


}
